<?php /*a:2:{s:71:"D:\phpstudy_pro\WWW\www.xnadmin.site\app\admin\view\admin_web\form.html";i:1616988419;s:61:"D:\phpstudy_pro\WWW\www.xnadmin.site\app\admin\view\main.html";i:1588058566;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?php echo xn_cfg('base.sys_name'); ?></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <script>
        //全局上传文件端口
        var UPLOAD_FILE_URL = "<?php echo url('upload_files/upload'); ?>";
        //全局选择文件端口
        var SELECT_FILE_URL = "<?php echo url('upload_files/select'); ?>";
    </script>
    <script src="/static/admin/js/jquery-2.0.0.min.js"></script>
    <script src="/static/admin/js/common.js"></script>
    <script src="/static/admin/js/upload.js"></script>
    <script src="/static/admin/js/webuploader.min.js"></script>
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/layuiAdmin.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/base.css" media="all">
    
</head>
<body>

<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
        <a><cite><?php echo htmlentities(get_username($param['admin_id'])); ?></cite></a>
        <a href="<?php echo url('index',['admin_id'=>$param['admin_id']]); ?>"><cite>网站</cite></a>
        <a><cite>分配</cite></a>
    </div>
</div>
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <form action="<?php echo request()->url(); ?>" method="post" class="xn_ajax">
        <input type="hidden" name="admin_id" value="<?php echo htmlentities($param['admin_id']); ?>">
        <div class="layui-form-item">
            <label class="layui-form-label">分配网站</label>
            <div class="layui-input-block">
                <?php if(is_array($weblist) || $weblist instanceof \think\Collection || $weblist instanceof \think\Paginator): if( count($weblist)==0 ) : echo "" ;else: foreach($weblist as $key=>$vo): ?>
                <input <?php if(in_array($vo['id'],$web_ids)): ?>checked<?php endif; ?> type="checkbox" name="web_ids[]" value="<?php echo htmlentities($vo['id']); ?>" title="<?php echo htmlentities($vo['title']); ?>">
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" lay-submit class="layui-btn">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>


<script src="/static/admin/layui/layui.all.js"></script>
<script src="/static/admin/js/admin.js"></script>

</body>
</html>